package com.duneyr.snakes.generate;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

class GenCorridor {

    Set<GenRoom> rooms = new HashSet<GenRoom>();

    boolean connectsTo(GenRoom room) {
        return rooms.contains(room);
    }

    void connectTo(Set<GenRoom> rooms) {
        rooms.addAll(rooms);
    }

    Set<GenRoom> getConnectedRooms() {
        return rooms;
    }
}
